package com.overlook.somniferous.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 用户用户组关系
 */
@ApiModel(description="用户用户组关系")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user_group")
public class UserGroup implements Serializable {
    @TableField(value = "id")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    @NotBlank(message = "不能为空")
    private String id;

    @TableField(value = "userId")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    @NotBlank(message = "不能为空")
    private String userid;

    @TableField(value = "groupId")
    @ApiModelProperty(value="")
    @Size(max = 100,message = "最大长度要小于 100")
    private String groupid;

    private static final long serialVersionUID = 1L;
}